import request from '@/utils/request'

// 查询叉车台账列表
export function listForklift(query) {
  return request({
    url: '/ledger/forklift/list',
    method: 'get',
    params: query
  })
}

// 查询叉车台账详细
export function getForklift(id) {
  return request({
    url: '/ledger/forklift/' + id,
    method: 'get'
  })
}

// 新增叉车台账
export function addForklift(data) {
  return request({
    url: '/ledger/forklift',
    method: 'post',
    data: data
  })
}

// 修改叉车台账
export function updateForklift(data) {
  return request({
    url: '/ledger/forklift',
    method: 'put',
    data: data
  })
}

// 删除叉车台账
export function delForklift(id) {
  return request({
    url: '/ledger/forklift/' + id,
    method: 'delete'
  })
}

// 导出叉车台账
export function exportForklift(query) {
  return request({
    url: '/ledger/forklift/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/ledger/forklift/importTemplate',
    method: 'get'
  })
}
